/**
 * Created by Administrator on 2017/7/5.
 */
const bluedSDK = require('../util/bluedSDK');
const util = require('../util/util');

var a = {
    'orderId': 1000,
    'userId': 5,
    uuid: 'd59da41d-8186-4982-a18e-47d8aea1fb93',
    cid: '::ffff:127.0.0.1:52243'
};

console.log(encodeURI(JSON.stringify(a)))
console.log(encodeURIComponent(JSON.stringify(a)))

var body = encodeURIComponent(JSON.stringify(a))

var access_tokenS = 'eab831b0-5937d8d6d1f0e2-35373600-0347dea5';
var url = bluedSDK.payUrl(access_tokenS,body);
console.log(url)

var d = {
    "appid": 9423973750,
    "beans": 1,
    "body": {"orderId":1000,"userId":5,"uuid":"d59da41d-8186-4982-a18e-47d8aea1fb93","cid":"::ffff:127.0.0.1:52243"},
    "goods_id": 1001,
    "notify_id": "20170705134131535543",
    "notify_time": "2017-07-05 13:41:31",
    "notify_type": "trade_status_sync",
    "orders_id": "201707051340172920958",
    "trade_status": "TRADE_SUCCESS",
    "sign": "YoRBr6ngVbB5myZy2qSm86VjBfw="
};
